home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / dviware / dvi2qms / fonts.h < prev    next >
C/C++ Source or Header  |  1990-10-01  |  2KB  |  71 lines

  1. /* fonts.h
  2.  * This file contains the interface to fonts.c, a way for using at tex fonts
  3.  * on a printer in a modular way.
  4.  */
  5.  
  6. /* Options to f_init
  7.  */
  8. #define F_INIT_LANDSCAPE     0x00000001
  9. #define F_INIT_QMS800        0x00000002
  10.  
  11. /* Initialization code.
  12.  * Should be called at the start of the printing program.
  13.  */
  14. extern f_init();
  15. /* f_init(printer,pgmname,dirvec,dirveclen,num,den,mag,options)
  16.  *   FILE *printer;
  17.  *   char *pgm_name,dirvec[];
  18.  *   int dirveclen;
  19.  *   long num,den,mag;
  20.  *   unsigned long options;
  21.  */
  22.  
  23. /* Called at the end of your program.
  24.  */
  25. extern f_term();
  26.  
  27. /* Options to f_define_font
  28.  */
  29.  
  30.  
  31. /* Define a font for using.
  32.  * This can be called more than once for the same font.
  33.  */
  34. extern f_define_font();
  35. /* f_define_font(fontnum,options,area,name,mag,s,tfmchecksum)
  36.  *   char *area,*name;
  37.  *   unsigned long fontnum,options,mag,s,tfmchecksum;
  38.  */
  39.  
  40. /* Hints as to what fonts are to be used.
  41.  * This is called once per page to give fonts module hints as what fonts
  42.  * are going to be used on this page.
  43.  */
  44. extern f_newpage();
  45. /* f_newpage(fontvec,charvec,veclen)
  46.  *   unsigned long fontvec[];
  47.  *   unsigned long charvec[][4];
  48.  *   int veclen;
  49.  */
  50.  
  51. /* Set a font as the current font.
  52.  */
  53. extern f_use_font();
  54. /* f_use_font(fontnum,font_space)
  55.  *   unsigned long fontnum;
  56.  *   long *font_space;
  57.  */
  58.  
  59. /* Make sure that the font info for this character is loaded.
  60.  * This is here so fonts could be incrementally loaded into the printer,
  61.  * if so desired by fonts.c.
  62.  * This procedure is called for every character output to the printer,
  63.  * So it should be fast in the standard case.
  64.  * Should return how much the point moves after setting this character.
  65.  */
  66. extern int f_use_char();
  67. /* f_use_char(ch,pxlwidth,devwidth)
  68.  *   unsigned long ch;
  69.  *   long *pxlwidth,*devwidth;
  70.  */
  71.